﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Chess.Square"
	x:Name="UserControl">
	<UserControl.Resources>
		<Storyboard x:Key="GlowPulseSelect" RepeatBehavior="Forever" >
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="selectRect" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#7F00FF00"/>
				<SplineColorKeyFrame KeyTime="00:00:01" Value="Lime"/>
				<SplineColorKeyFrame KeyTime="00:00:02" Value="#7F00FF00"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="GlowPulseAttack" RepeatBehavior="Forever" >
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="attackRect" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00" Value="#7FFF0000"/>
				<SplineColorKeyFrame KeyTime="00:00:01" Value="Red"/>
				<SplineColorKeyFrame KeyTime="00:00:02" Value="#7FFF0000"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="SelectHide">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="selectRect" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="#0000FF00"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="AttackHide">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="attackRect" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="#00FF0000"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="AvailableHide">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="availableRect" Storyboard.TargetProperty="(Shape.Stroke).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="#00FFC000"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<Grid x:Name="LayoutRoot">
		<Rectangle x:Name="imageRect" StrokeThickness="0" Margin="12"/>
		<Rectangle x:Name="selectRect" Stroke="#7F00FF00" StrokeThickness="12" Visibility="Hidden">
			<Rectangle.Effect>
				<BlurEffect RenderingBias="Quality" Radius="12"/>
			</Rectangle.Effect>
		</Rectangle>
		<Rectangle x:Name="attackRect" Stroke="#7FFF0000" StrokeThickness="12" Visibility="Hidden">
			<Rectangle.Effect>
				<BlurEffect RenderingBias="Quality" Radius="12"/>
			</Rectangle.Effect>
		</Rectangle>
		<Rectangle x:Name="availableRect" Stroke="#99FFC000" StrokeThickness="12" Visibility="Hidden">
			<Rectangle.Effect>
				<BlurEffect RenderingBias="Quality" Radius="12"/>
			</Rectangle.Effect>
		</Rectangle>
		<Rectangle>
			<Rectangle.Fill>
				<SolidColorBrush/>
			</Rectangle.Fill>
		</Rectangle>
	</Grid>
</UserControl>